package org.bikelab.se3.util;

import java.io.File;

public class DirExplorer {
	public interface Action {
		public void perform(File f);
	}
	
	public void explore(String path, Action a) {
		File dir = new File(path);
		if(dir.isDirectory()) {
			for (File f : dir.listFiles()) {
				a.perform(f);
			}
		}
	}
}
